/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.springapp.util;

/**
 *
 * @author vkrivtc
 */
public class ControllerUtil {

    private static final String success = "{\"success\":\"true\", \"data\":";
    private static final String error =
            "{\"success\":\"false\", \"error\":{id:\"2001\", message:\"invalid entity key\"}}";
    private static final String end = "}";
    private static final String loginError =
            "{\"success\":\"false\", \"error\":{id:\"2002\", message:\"invalid login or/and password\"}}";

    public static String printSuccess(String json) {
        return success + json + end;
    }

    public static String printError() {
        return error;
    }
    
    public static String printLoginError() {
        return loginError;
    }
}
